package com.kykj.kykjyzw.dao;

import com.kykj.kykjyzw.entity.AddressEntity;
import com.kykj.kykjyzw.vo.AddressVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AddressDao {
    List<AddressEntity>getAddressListByUser(@Param("uid") int uid,@Param("start") int start,@Param("limit") int limit);
    int getAddressCountByUser(@Param("uid") int uid,@Param("start") int start,@Param("limit") int limit);

    int getAddressCount();
    int addAddress(@Param("addressVo")AddressVo addressVo);
    int changeAddress(@Param("addressVo")AddressVo addressVo);
    int delAddress(@Param("addressid")int addressid);
}
